home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / scrptmng.hqx / Script Utilities doc / background_2638.xml next >
Encoding:
Extensible Markup Language  |  1993-05-30  |  12.4 KB  |  398 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2638</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3755.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3274.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <true /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>5</left>
  23.             <top>22</top>
  24.             <right>176</right>
  25.             <bottom>40</bottom>
  26.         </rect>
  27.         <style>rectangle</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>13</textHeight>
  40.         <name>Name</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>2</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <false /> </fixedLineHeight>
  51.         <autoTab> <true /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>192</left>
  55.             <top>22</top>
  56.             <right>506</right>
  57.             <bottom>52</bottom>
  58.         </rect>
  59.         <style>rectangle</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>13</textHeight>
  72.         <name>Args</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>3</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <false /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <true /> </lockText>
  85.         <rect>
  86.             <left>80</left>
  87.             <top>61</top>
  88.             <right>506</right>
  89.             <bottom>213</bottom>
  90.         </rect>
  91.         <style>scrolling</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>10</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>13</textHeight>
  104.         <name>Description</name>
  105.         <script>On MouseUpGet the value of the ClickChunkFind it in background field "Name"End MouseUp</script>
  106.     </part>
  107.     <part>
  108.         <id>4</id>
  109.         <type>button</type>
  110.         <visible> <true /> </visible>
  111.         <reserved5> 0 </reserved5>
  112.         <reserved4> 0 </reserved4>
  113.         <reserved3> 0 </reserved3>
  114.         <reserved2> 0 </reserved2>
  115.         <reserved1> 0 </reserved1>
  116.         <enabled> <true /> </enabled>
  117.         <rect>
  118.             <left>463</left>
  119.             <top>223</top>
  120.             <right>506</right>
  121.             <bottom>256</bottom>
  122.         </rect>
  123.         <style>rectangle</style>
  124.         <showName> <false /> </showName>
  125.         <highlight> <false /> </highlight>
  126.         <autoHighlight> <false /> </autoHighlight>
  127.         <sharedHighlight> <true /> </sharedHighlight>
  128.         <family>0</family>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>26425</icon>
  131.         <textAlign>center</textAlign>
  132.         <font>Chicago</font>
  133.         <textSize>12</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <name>Go Next</name>
  136.         <script>On MouseUpVisual effect wipe leftGo to next cardEnd MouseUp</script>
  137.     </part>
  138.     <part>
  139.         <id>5</id>
  140.         <type>button</type>
  141.         <visible> <true /> </visible>
  142.         <reserved5> 0 </reserved5>
  143.         <reserved4> 0 </reserved4>
  144.         <reserved3> 0 </reserved3>
  145.         <reserved2> 0 </reserved2>
  146.         <reserved1> 0 </reserved1>
  147.         <enabled> <true /> </enabled>
  148.         <rect>
  149.             <left>409</left>
  150.             <top>223</top>
  151.             <right>452</right>
  152.             <bottom>256</bottom>
  153.         </rect>
  154.         <style>rectangle</style>
  155.         <showName> <false /> </showName>
  156.         <highlight> <false /> </highlight>
  157.         <autoHighlight> <false /> </autoHighlight>
  158.         <sharedHighlight> <true /> </sharedHighlight>
  159.         <family>0</family>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>902</icon>
  162.         <textAlign>center</textAlign>
  163.         <font>Chicago</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>plain</textStyle>
  166.         <name>Go Prev</name>
  167.         <script>On MouseUpVisual effect wipe rightGo to previous cardEnd MouseUp</script>
  168.     </part>
  169.     <part>
  170.         <id>6</id>
  171.         <type>button</type>
  172.         <visible> <true /> </visible>
  173.         <reserved5> 0 </reserved5>
  174.         <reserved4> 0 </reserved4>
  175.         <reserved3> 0 </reserved3>
  176.         <reserved2> 0 </reserved2>
  177.         <reserved1> 0 </reserved1>
  178.         <enabled> <true /> </enabled>
  179.         <rect>
  180.             <left>9</left>
  181.             <top>61</top>
  182.             <right>66</right>
  183.             <bottom>82</bottom>
  184.         </rect>
  185.         <style>radiobutton</style>
  186.         <showName> <true /> </showName>
  187.         <highlight> <false /> </highlight>
  188.         <autoHighlight> <false /> </autoHighlight>
  189.         <sharedHighlight> <false /> </sharedHighlight>
  190.         <family>0</family>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>center</textAlign>
  194.         <font>Chicago</font>
  195.         <textSize>12</textSize>
  196.         <textStyle>plain</textStyle>
  197.         <name>XFCN</name>
  198.         <script>On MouseUpIf not the LocKText of background field "Name" thenSet hilite of background button "XCMD" to falseSet hilite of background button "XFCN" to trueCardChangedEnd IfEnd MouseUp</script>
  199.     </part>
  200.     <part>
  201.         <id>7</id>
  202.         <type>button</type>
  203.         <visible> <true /> </visible>
  204.         <reserved5> 0 </reserved5>
  205.         <reserved4> 0 </reserved4>
  206.         <reserved3> 0 </reserved3>
  207.         <reserved2> 0 </reserved2>
  208.         <reserved1> 0 </reserved1>
  209.         <enabled> <true /> </enabled>
  210.         <rect>
  211.             <left>9</left>
  212.             <top>88</top>
  213.             <right>66</right>
  214.             <bottom>109</bottom>
  215.         </rect>
  216.         <style>radiobutton</style>
  217.         <showName> <true /> </showName>
  218.         <highlight> <false /> </highlight>
  219.         <autoHighlight> <false /> </autoHighlight>
  220.         <sharedHighlight> <false /> </sharedHighlight>
  221.         <family>0</family>
  222.         <titleWidth>0</titleWidth>
  223.         <icon>0</icon>
  224.         <textAlign>center</textAlign>
  225.         <font>Chicago</font>
  226.         <textSize>12</textSize>
  227.         <textStyle>plain</textStyle>
  228.         <name>XCMD</name>
  229.         <script>On MouseUpIf not the LocKText of background field "Name" thenSet hilite of background button "XFCN" to falseSet hilite of background button "XCMD" to trueCardChangedEnd IfEnd MouseUp</script>
  230.     </part>
  231.     <part>
  232.         <id>8</id>
  233.         <type>field</type>
  234.         <visible> <true /> </visible>
  235.         <dontWrap> <false /> </dontWrap>
  236.         <dontSearch> <false /> </dontSearch>
  237.         <sharedText> <false /> </sharedText>
  238.         <fixedLineHeight> <false /> </fixedLineHeight>
  239.         <autoTab> <false /> </autoTab>
  240.         <lockText> <true /> </lockText>
  241.         <rect>
  242.             <left>80</left>
  243.             <top>245</top>
  244.             <right>146</right>
  245.             <bottom>261</bottom>
  246.         </rect>
  247.         <style>rectangle</style>
  248.         <autoSelect> <false /> </autoSelect>
  249.         <showLines> <false /> </showLines>
  250.         <wideMargins> <false /> </wideMargins>
  251.         <multipleLines> <false /> </multipleLines>
  252.         <reservedFamily> 0 </reservedFamily>
  253.         <titleWidth>0</titleWidth>
  254.         <icon>0</icon>
  255.         <textAlign>center</textAlign>
  256.         <font>Geneva</font>
  257.         <textSize>10</textSize>
  258.         <textStyle>plain</textStyle>
  259.         <textHeight>13</textHeight>
  260.         <name>Display Mod Date</name>
  261.         <script></script>
  262.     </part>
  263.     <part>
  264.         <id>10</id>
  265.         <type>field</type>
  266.         <visible> <false /> </visible>
  267.         <dontWrap> <false /> </dontWrap>
  268.         <dontSearch> <false /> </dontSearch>
  269.         <sharedText> <false /> </sharedText>
  270.         <fixedLineHeight> <false /> </fixedLineHeight>
  271.         <autoTab> <false /> </autoTab>
  272.         <lockText> <true /> </lockText>
  273.         <rect>
  274.             <left>4</left>
  275.             <top>40</top>
  276.             <right>175</right>
  277.             <bottom>58</bottom>
  278.         </rect>
  279.         <style>rectangle</style>
  280.         <autoSelect> <false /> </autoSelect>
  281.         <showLines> <false /> </showLines>
  282.         <wideMargins> <false /> </wideMargins>
  283.         <multipleLines> <false /> </multipleLines>
  284.         <reservedFamily> 0 </reservedFamily>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>left</textAlign>
  288.         <font>Geneva</font>
  289.         <textSize>10</textSize>
  290.         <textStyle>bold</textStyle>
  291.         <textHeight>13</textHeight>
  292.         <name>Mod Date</name>
  293.         <script></script>
  294.     </part>
  295.     <part>
  296.         <id>13</id>
  297.         <type>button</type>
  298.         <visible> <true /> </visible>
  299.         <reserved5> 0 </reserved5>
  300.         <reserved4> 0 </reserved4>
  301.         <reserved3> 0 </reserved3>
  302.         <reserved2> 0 </reserved2>
  303.         <reserved1> 0 </reserved1>
  304.         <enabled> <true /> </enabled>
  305.         <rect>
  306.             <left>80</left>
  307.             <top>218</top>
  308.             <right>381</right>
  309.             <bottom>240</bottom>
  310.         </rect>
  311.         <style>checkbox</style>
  312.         <showName> <true /> </showName>
  313.         <highlight> <false /> </highlight>
  314.         <autoHighlight> <false /> </autoHighlight>
  315.         <sharedHighlight> <false /> </sharedHighlight>
  316.         <family>0</family>
  317.         <titleWidth>0</titleWidth>
  318.         <icon>20186</icon>
  319.         <textAlign>center</textAlign>
  320.         <font>Chicago</font>
  321.         <textSize>12</textSize>
  322.         <textStyle>plain</textStyle>
  323.         <name>Result is negative OS error code on failure</name>
  324.         <script>On MouseUpIf not the LockText of background field "Name" thenSet hilite of the target to not the hilite of the targetCardChangedEnd IfEnd MouseUp</script>
  325.     </part>
  326.     <part>
  327.         <id>14</id>
  328.         <type>field</type>
  329.         <visible> <true /> </visible>
  330.         <dontWrap> <false /> </dontWrap>
  331.         <dontSearch> <false /> </dontSearch>
  332.         <sharedText> <true /> </sharedText>
  333.         <fixedLineHeight> <false /> </fixedLineHeight>
  334.         <autoTab> <false /> </autoTab>
  335.         <lockText> <true /> </lockText>
  336.         <rect>
  337.             <left>230</left>
  338.             <top>247</top>
  339.             <right>346</right>
  340.             <bottom>265</bottom>
  341.         </rect>
  342.         <style>rectangle</style>
  343.         <autoSelect> <false /> </autoSelect>
  344.         <showLines> <false /> </showLines>
  345.         <wideMargins> <false /> </wideMargins>
  346.         <multipleLines> <false /> </multipleLines>
  347.         <reservedFamily> 0 </reservedFamily>
  348.         <titleWidth>0</titleWidth>
  349.         <icon>0</icon>
  350.         <textAlign>center</textAlign>
  351.         <font>Chicago</font>
  352.         <textSize>12</textSize>
  353.         <textStyle>plain</textStyle>
  354.         <textHeight>16</textHeight>
  355.         <name></name>
  356.         <script></script>
  357.     </part>
  358.     <part>
  359.         <id>15</id>
  360.         <type>field</type>
  361.         <visible> <true /> </visible>
  362.         <dontWrap> <false /> </dontWrap>
  363.         <dontSearch> <false /> </dontSearch>
  364.         <sharedText> <false /> </sharedText>
  365.         <fixedLineHeight> <false /> </fixedLineHeight>
  366.         <autoTab> <false /> </autoTab>
  367.         <lockText> <true /> </lockText>
  368.         <rect>
  369.             <left>351</left>
  370.             <top>247</top>
  371.             <right>383</right>
  372.             <bottom>265</bottom>
  373.         </rect>
  374.         <style>rectangle</style>
  375.         <autoSelect> <false /> </autoSelect>
  376.         <showLines> <false /> </showLines>
  377.         <wideMargins> <false /> </wideMargins>
  378.         <multipleLines> <false /> </multipleLines>
  379.         <reservedFamily> 0 </reservedFamily>
  380.         <titleWidth>0</titleWidth>
  381.         <icon>0</icon>
  382.         <textAlign>center</textAlign>
  383.         <font>Chicago</font>
  384.         <textSize>12</textSize>
  385.         <textStyle>plain</textStyle>
  386.         <textHeight>16</textHeight>
  387.         <name>Minimum Version</name>
  388.         <script></script>
  389.     </part>
  390.     <content>
  391.         <layer>background</layer>
  392.         <id>14</id>
  393.         <text>Min Sys version:</text>
  394.     </content>
  395.     <name>XDoc</name>
  396.     <script>On CloseFieldCardChangedEnd CloseFieldOn ShowDateGet background field "Mod Date"Convert it to short datePut it into background field "Display Mod Date"End ShowDateOn OpenCardShowDateEnd OpenCardOn CardChangedPut the seconds into background field "Mod Date"ShowDateEnd CardChanged---- Utility routines--On WhiteOutRadioButtons-- paints a white rectangle matching the bounds of-- the ΓÇ£XFCNΓÇ¥ and ΓÇ£XCMDΓÇ¥ radio buttons. Make sure youΓÇÖre-- in background edit mode before invoking this routine.WhiteOutButton the short id of background button "XFCN"WhiteOutButton the short id of background button "XCMD"End WhiteOutRadioButtonsOn StripDescriptionNewLines-- removes all newline characters from the contents-- of the ΓÇ£DescriptionΓÇ¥ field.RepeatPut (the length of line 1 of field "Description") + 1 ┬¼into ReturnPosGet char ReturnPos of field "Description"If it Γëá return thenExit RepeatEnd IfDelete char ReturnPos of field "Description"End RepeatEnd StripDescriptionNewLinesOn SetSysVersion ToVersion-- sets minimum version required for all cards for-- which this hasnΓÇÖt been done yet.Push this cardUnmark all cardsMark cards where field "Minimum Version" is emptyRepeatGo to next marked cardIf not the marked of this card thenExit RepeatEnd IfPut ToVersion into field "Minimum Version"Unmark this cardEnd RepeatPop cardEnd SetSysVersion</script>
  397. </background>
  398.